

x = 5

y = str(1234)
z = [x for x in y]

y = ['1','2','3','4']

y.reverse()
z = []
move_ = 0


for i in y:

    # print(i)
    temp = int(i) * x

    if move_ != 0:
        temp += move_

    if temp >= 10:
        move_ = temp // 10
        temp = temp % 10

    z.append('{}'.format(temp))
z.reverse()
print(z)







